
$(document).ready(function () {

	//$("#ceza-hesapla-modal").hide();
    $('.ceza-hesapla').click(function(){
    
    $('.bold').each(function() {
	$(this).removeClass('bold').addClass('normal');
	  });
	$(this).parents('.check').find('.chkboxMsisdn').removeClass('normal').addClass('bold').html();
	$(this).parents('.check').find('.chkboxCustcode').removeClass('normal').addClass('bold').html();
    
			$('#ceza-hesapla-modal > .modal-box > .modal-content').html("");
			$("#ceza-hesapla-modal").show();
			$("#matris-modal").hide();
			$('.loading').show();
			$('.loading').html('<img src="../assets/images/ajax-loader.gif">');
			var custcode = $($(this).parent()).find('.hdnCustCode').val();
			var sncode = $($(this).parent()).find('.hdnSnCode').val();
			$.ajax({
                type: "GET",
                url: "bagliliksorguceza.aspx",
                data: "custcode="+custcode+"&sncode="+sncode+"&msisdn=",
                success: function (data) {
                    setTimeout(function () {$('#ceza-hesapla-modal > .modal-box > .modal-content').html(data);
				 $('.loading').hide();
				 }, 2000);
                },
                error: function (request, status, error) {
                $('.loading').hide();
                $('#ceza-hesapla-modal > .modal-box > .modal-content').html(request.responseText);
				}
            });
    });
    
        $('.tum-ceza-hesapla').click(function(){
			$('#ceza-hesapla-modal > .modal-box > .modal-content').html("");
			$("#ceza-hesapla-modal").show();
			$("#matris-modal").hide();
			$('.loading').show();
			$('.loading').html('<img src="../assets/images/ajax-loader.gif">');
			var custcode = $('.hdnTumCezaHesapla').val();
			$.ajax({
                type: "GET",
                url: "bagliliksorguceza.aspx",
                data: "custcode="+custcode,
                success: function (data) {
                    setTimeout(function () {$('#ceza-hesapla-modal > .modal-box > .modal-content').html(data);
				 $('.loading').hide();
				 }, 2000);
                },
                error: function (request, status, error) {
                $('.loading').hide();
                $('#ceza-hesapla-modal > .modal-box > .modal-content').html(request.responseText);
				}
            });
    });
	
	
    $('.tabbutton').click(function(){
    $("#matris-modal").show();
	$("#ceza-hesapla-modal").hide();
    });
	

});


